TARGET = noviceserver

NDLIBDIR = ../../ndnetengine-read-only
LUA_CFLAGS = `lua-config --include --libs`
LIB_DIR = -L$(NDLIBDIR)/lib/ -L$(LUASRCDIR)

ALL_LIBS = -lnd_appcpp_dbg -lnd_app_dbg -lnd_srvcore_dbg  -lnd_net_dbg -lnd_crypt_dbg -lnd_common_dbg -lnd_quadtree_dbg 

#ALL_LIBS = $(LIB_DIR)/libnd_app_dbg.a \
           $(LIB_DIR)/libnd_appcpp_dbg.a \
           $(LIB_DIR)/libnd_cliapp_dbg.a \
           $(LIB_DIR)/libnd_common_dbg.a \
           $(LIB_DIR)/libnd_crypt_dbg.a \
           $(LIB_DIR)/libnd_srvcore_dbg.a \
           $(LIB_DIR)/libnd_net_dbg.a 

CFLAGS = -g -O0 -DND_DEBUG -D__LINUX__ -I$(NDLIBDIR)/include -I../include -lpthread -lrt -lm  -L$(NDLIBDIR)/lib/ $(LUA_CFLAGS) -I../../../OurRPG

all: $(TARGET).c 
	gcc  $(CFLAGS) `log4c-config --libs --cflags` -o $(TARGET) $(TARGET).c  $(ALL_LIBS)

clean:
	rm -rf $(TARGET) *.o